/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_usernumber")
//@NamedQueries({@NamedQuery(name = "TTjUsernumber.findAll", query = "SELECT t FROM TTjUsernumber t"), @NamedQuery(name = "TTjUsernumber.findById", query = "SELECT t FROM TTjUsernumber t WHERE t.id = :id"), @NamedQuery(name = "TTjUsernumber.findByScode", query = "SELECT t FROM TTjUsernumber t WHERE t.scode = :scode"), @NamedQuery(name = "TTjUsernumber.findByPricetype", query = "SELECT t FROM TTjUsernumber t WHERE t.pricetype = :pricetype"), @NamedQuery(name = "TTjUsernumber.findByCyear", query = "SELECT t FROM TTjUsernumber t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjUsernumber.findByCmonth", query = "SELECT t FROM TTjUsernumber t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjUsernumber.findByDownloadnumber", query = "SELECT t FROM TTjUsernumber t WHERE t.downloadnumber = :downloadnumber"), @NamedQuery(name = "TTjUsernumber.findBySname", query = "SELECT t FROM TTjUsernumber t WHERE t.sname = :sname")})
public class TTjUsernumber implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "scode")
    private String scode;
    @Column(name = "pricetype")
    private String pricetype;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "downloadnumber")
    private Integer downloadnumber;
    @Column(name = "sname")
    private String sname;

    public TTjUsernumber() {
    }

    public TTjUsernumber(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public String getPricetype() {
        return pricetype;
    }

    public void setPricetype(String pricetype) {
        this.pricetype = pricetype;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public Integer getDownloadnumber() {
        return downloadnumber;
    }

    public void setDownloadnumber(Integer downloadnumber) {
        this.downloadnumber = downloadnumber;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjUsernumber)) {
            return false;
        }
        TTjUsernumber other = (TTjUsernumber) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjUsernumber[id=" + id + "]";
    }

}
